package com.atguigu.crowd.service.api;

import com.atguigu.crowd.entity.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AdminService {


    public void saveAdmin(Admin admin);

    public List<Admin> getAll();

    public Admin getAdminByloginAcct(String loginAcct,String userPswd);

    public Admin getAdminByloginAcct(String loginAcct);

    public PageInfo<Admin> getPageInfo(String keyword,Integer pageNum,Integer pageSize);

    void remove(Integer adminId);


    Admin getAdminById(Integer adminId);

    void add(Admin admin);

    void update(Admin admin);

    void saveAdminRoleRelationship(Integer adminId, List<Integer> roleIdList);
}
